<?php echo $this->doctype() ?>
<html>
<head>
<title>AUTOEVALUACIÓN - CUN</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<script type="text/javascript">
var baseUrl = "<?php echo $this->baseUrl(); ?>";
</script>
  <?php
  $this->headLink()->appendStylesheet($this->baseUrl('bootstrap/css/bootstrap.green.css'));
  $this->headLink()->appendStylesheet($this->baseUrl('css/south-street/jquery-ui-1.10.4.custom.min.css'));
  $this->headLink()->appendStylesheet($this->baseUrl('spinedit/bootstrap-spinedit.css'));
  $this->headLink()->appendStylesheet($this->baseUrl('css/superTabs.css'));
  $this->headLink()->appendStylesheet($this->baseUrl('metis-menu/menu.css'));
  $this->headLink()->appendStylesheet($this->baseUrl('font-awesome/css/font-awesome.min.css'));
  $this->headLink()->appendStylesheet($this->baseUrl('dataTable/css/jquery.dataTables.css'));
  $this->headLink()->appendStylesheet($this->baseUrl('chosen/chosen.min.css'));
  $this->headLink()->appendStylesheet($this->baseUrl('css/dashboard.css'));
  //$this->headLink()->appendStylesheet($this->baseUrl('dataTable/css/dataTables.bootstrap.css'));
  echo $this->headLink();
  
  $this->headScript()->appendFile($this->baseUrl('js/jquery.js'));
  $this->headScript()->appendFile($this->baseUrl('bootstrap/js/bootstrap.min.js'));
  $this->headScript()->appendFile($this->baseUrl('js/jquery-ui-1.10.4.custom.min.js'));
  //$this->headScript()->appendFile($this->baseUrl('js/cookie.js'));
  $this->headScript()->appendFile($this->baseUrl('spinedit/bootstrap-spinedit.js'));
  $this->headScript()->appendFile($this->baseUrl('metis-menu/menu.js'));
  $this->headScript()->appendFile($this->baseUrl('dataTable/js/jquery.dataTables.min.js'));
  $this->headScript()->appendFile($this->baseUrl('dataTable/js/initDataTables.js'));
 // $this->headScript()->appendFile($this->baseUrl('dataTable/js/dataTables.bootstrap.js'));
  $this->headScript()->appendFile($this->baseUrl('js/jquery.popupWindow.js'));
  $this->headScript()->appendFile($this->baseUrl('js/superTabs.js'));
  $this->headScript()->appendFile($this->baseUrl('chosen/chosen.jquery.min.js'));
  $this->headScript()->appendFile($this->baseUrl('js/bootstrap-growl.min.js'));
  $this->headScript()->appendFile($this->baseUrl('js/bootstrap-maxlength.js'));
  $this->headScript()->appendFile($this->baseUrl('js/init.js'));
  echo $this->headScript();
  ?>
  <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
  <!--[if lt IE 9]>
    <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
    <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
  <![endif]-->
</head>
<body style="padding-top: 0px !important;">
<div class="container-fluid">
  <div class="row col-sm-12">
  <h2 class="page-header"><?php echo $this->placeholder("titulo"); ?></h2>
  <?php echo $this->layout()->content ?>
  <?php
    $priorityMsg = $this->priorityMessenger();
    if (count( $priorityMsg ) > 0) {
        $types = array("success"=>"success", "warning"=>"warning", "error"=>"danger");
        $icons = array("success"=>"ok-sign", "warning"=>"warning-sign", "error"=>"thumbs-down");
        $titles = array("success"=>"Operación exitosa", "warning"=>"Advertencia", "error"=>"Ha ocurrido un error");
    	echo '<script type="text/javascript">';
    	foreach ( $priorityMsg as $label => $messages ) {
    	    $type = array_key_exists($label, $types) ? $types[$label] : "info";
    	    $icon = array_key_exists($label, $icons) ? $icons[$label] : "info-sign";
    	    $title = array_key_exists($label, $titles) ? $titles[$label] : "Información";
    	    $finalmsg = "";
    		foreach ( $messages as $message ) {
    		    $finalmsg .= "- ".str_replace("\n","<br/>", str_replace("'","\\'", htmlentities($message)))."<br/>";
    		}
            echo "\$.growl({message:' $finalmsg', title:'$title', icon:'glyphicon glyphicon-$icon'},{type:'$type'});";
    	}
    	echo '</script>';
    }
  ?>
  <div id="confirmation_delete" title="Eliminar registro">
    ¿Esta seguro que desea eliminar
    <strong><span id="confirmation_delete_msg"></span></strong>?
  </div>
  </div>
</div>

</body>
</html>